package com.yhos.platform.oopston.core.aop;

import org.aspectj.lang.ProceedingJoinPoint;
import org.aspectj.lang.annotation.Around;
import org.aspectj.lang.annotation.Aspect;
import org.aspectj.lang.annotation.Pointcut;
import org.springframework.core.annotation.Order;

@Aspect
@Order(2) //根据需要的切面安排处理顺序
public class BaseParamsAspect extends ParamsAspect {

    //具体按照各自项目中Controller目录去设定切点
    @Pointcut("execution(* com.yhos.platform.oopston.web.*.*.*(..))")
    @Override
    public void controllerMethodPointcut() {
        super.controllerMethodPointcut();
    }

    @Around("controllerMethodPointcut()")
    @Override
    public Object processAspect(ProceedingJoinPoint point) throws Throwable {
        return super.processAspect(point);
    }

}
